<script src="__JS__/common.js"></script>
<!--顶部导航条 -->
<div class="header-top">
    <div class="header-box">
        <!-- 站点 -->
        <!--站点 start-->
        <div class="SZY-SUBSITE"></div>
        <!--站点 end-->
        <!-- 登录信息 -->
        <empty name="Think.session.user_id">
        <font id="login-info" class="login-info SZY-USER-NOT-LOGIN">
        <!--<em>欢迎来到商之翼! </em>-->
        <a class="login color" href="{:USER_URL}{:U('Login/index')}" target="_top">请登录</a>
        <a class="register" href="{:USER_URL}{:U('Register/mobile')}" target="_top">免费注册</a>
        </font>
        <else/>
        <font id="login-info" class="login-info SZY-USER-ALREADY-LOGIN">
        <em>
            <a href="{:USER_URL}{:U('Index/index')}" target="_blank" class="color SZY-USER-NAME">{$Think.session.user_name}</a>
            <!--欢迎您回来!-->
        </em>
        <a href="javascript:(0);" onclick="loginOut()" data-method="post">退出</a>
        </font>
        </empty>
        <ul>
            <li class="menu-item">
                <a class="menu-hd home" href="{:HOME_URL}" target="_top">
                    <i></i>
                    商城首页
                </a>
            </li>
            <li class="menu-item">
                <div class="menu">
                    <a class="menu-hd myinfo" href="{:USER_URL}{:U('User/index')}" target="_blank">
                        <i></i>
                        个人中心
                        <b></b>
                    </a>
                    <div id="menu-2" class="menu-bd" style="display: none;">
                        <span class="menu-bd-mask"></span>
                        <div class="menu-bd-panel">
                            <a href="{:USER_URL}{:U('Order/index')}" target="_blank">已买到的宝贝</a>
                            <a href="{:USER_URL}{:U('Address/index')}" target="_blank">我的地址管理</a>
                            <a href="{:USER_URL}{:U('Collection/index')}" target="_blank">我收藏的宝贝</a>
                            <a href="{:USER_URL}{:U('Collection/supplier')}" target="_blank">我收藏的店铺</a>
                        </div>
                    </div>
                </div>
            </li>

            <li class="menu-item">
                <a class="menu-hd" href="{:STORE_URL}" target="_blank">卖家中心</a>
            </li>
            <li class="menu-item">
                <div class="menu">
                    <a class="menu-hd we-chat" href="" target="_top">
                        <i></i>
                        关注商城
                        <b></b>
                    </a>
                    <div id="menu-5" class="menu-bd we-chat-qrcode" style="display: none;">
                        <span class="menu-bd-mask"></span>
                        <a target="_top">
                            <img src="__IMG__/home/weixin_code_145.png" alt="官方微信">
                        </a>
                        <p class="font-14">关注官方微信</p>
                    </div>
                </div>
            </li>

            <li class="menu-item">
                <div class="menu">
                    <a href="" class="menu-hd site-nav" target="_blank">
                        商家支持
                        <b></b>
                    </a>
                    <div id="menu-7" class="menu-bd site-nav-main" style="display: none;">
                        <span class="menu-bd-mask"></span>
                        <div class="menu-bd-panel">
                            <div class="site-nav-con">
                                <a href="/" target="_blank" title="测试1">测试1</a>
                                <a href="/" target="_blank" title="新手上路">新手上路</a>
                                <a href="/" target="_blank" title="支付方式">支付方式</a>
                                <a href="/" target="_blank" title="配送服务">配送服务</a>
                                <a href="/" target="_blank" title="售后服务">售后服务</a>
                                <a href="/" target="_blank" title="商家合作">商家合作</a>
                                <a href="/" target="_blank" title="店铺街">店铺街</a>
                                <a href="/" target="_blank" title="测试2">测试2</a>
                            </div>
                        </div>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
<!--悬浮搜索框-->
<div class="nav white">
    <div class="logo"><a href="/"><img src="__IMG__/home/logo.png" /></a></div>
    <div class="logoBig">
        <li><img src="__IMG__/home/20170410210852.gif" /></li>
    </div>

    <div class="search-bar pr">
        <a name="index_none_header_sysc" href="#"></a>
        <form>
            <input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off" />
            <input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit" />
        </form>
    </div>
</div>
<script type="text/javascript">
    function loginOut() {
        layer.confirm('确定退出平台吗？', {
            btn: ['确认', '取消'] //按钮
        }, function () {
            var a = Aajax("{:U('Public/Out')}");
            if (a.status) {
                layer.alert(a.msg, function () {
                    window.location.href = "{:U('Index/index')}";
                });
            } else {
                layer.alert(a.msg);
            }
        }, function () {

        });
    }
</script>